<layout name="layout" />
<div class="row">

	<div class="col-md-12">
		<foreach name="user" item="v">
		<form class="form-horizontal" action="__CONTROLLER__/editUserHandle" method="post">
			<div class="form-group">
				<label for="title" class="col-sm-2 control-label">用户名:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" value="{$v.username}" name="username" id="ruleTitle">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>						

			<div class="form-group">
				<label for="name" class="col-sm-2 control-label">邮箱:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" value="{$v.email}"  name="email" id="ruleName">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>

			<div class="form-group">
				<label for="condition" class="col-sm-2 control-label">新密码:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" placeholder="不填则使用原密码" name="password" id="condition">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>
			<div class="form-group">
				<label for="name" class="col-sm-2 control-label">积分:</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" value="{$v.score}"  name="score" id="ruleName">
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>
			<div class="form-group">
				<label for="modules" class="col-sm-2 control-label">所属组:</label>
				<div class="col-sm-3">
					<select class="form-control" name="group_id">
						<option vaule="">---请选择用户组---</option>
						<foreach name="group" item="c">
							<option value="{$c.id}" <if condition="$v['group_id'] eq $c['id']"> selected="selected" </if>  >{$c.title}</option>
						</foreach>
					</select>
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">是否启用:</label>
				<div class="btn-group col-sm-5" data-toggle="buttons">
					<label class="btn btn-primary <if condition="$v.status eq 1">active</if>" >
						<input type="radio" name="status" id="status" value="1"<if condition="$v.status eq 1">checked="checked"</if>>启用
					</label>

					<label class="btn btn-danger <if condition="$v.status eq 0">active</if>" >
						<input type="radio" name="status" id="status" value="0"<if condition="$v.status eq 0">checked="checked"</if>>禁用
					</label>
				</div>
				<label class="col-sm-2 control-label"></label>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-5">
					<input type="hidden" name="id" value="{$v.id}">
					<button type="submit" class="btn btn-success btn-add">修改</button>
				</div>	
			</div>
		</form>	
		</foreach>	
	</div>
</div>